package com.situ.web.entity;

import java.util.List;

public class PageBean<T> {
	// 存放当前这一页的数据
	private List<T> list;
	// 当前是第几页
	private Integer pageNo;
	// 一页有多少条数据
	private Integer pageSize;
	// 一共有多少页
	private Integer totalPage;

	public PageBean() {
		super();
	}

	public PageBean(List<T> list, Integer pageNo, Integer pageSize, Integer totalPage) {
		super();
		this.list = list;
		this.pageNo = pageNo;
		this.pageSize = pageSize;
		this.totalPage = totalPage;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	@Override
	public String toString() {
		return "PageBean [list=" + list + ", pageNo=" + pageNo + ", pageSize=" + pageSize + ", totalPage=" + totalPage
				+ "]";
	}

}
